begin...end VS braces {...} VS indentation grouping
Posted
by Halst
on Stack Overflow
See other posts from Stack Overflow
or by Halst
Published on 2010-04-09T19:01:15Z
Indexed on
2010/04/09
19:13 UTC
Read the original article
Hit count: 371
Hi, everyone. I don't want to fuel any holy-wars here, but I need to ask your opinion.
Right now I'm in process of designing a Hardware Description Language as a project in my university. I decided to take VHDL language and just add some syntax-sugar 'coz VHDL is rather obese in syntax.
I decided to use indentation to group blocks of code (like in Python), and I'm strongly criticized for that.
Originally Begin...End; grouping is used in VHDL language.
I have no clue what are cons and pros of these 3 types of grouping, the only thing I know is that I like Python style and I don't understand if it's usage could be erroneous or something?
What do you think? What do you like? (hope that I can get some feedback from people who extensively used different languages with different code-grouping syntax, like Pasca, Ada, Delphi, C, C++, C#, Java, Python)
© Stack Overflow or respective owner